package cn.quevo.ucenter.core.enums;

import cn.quevo.core.enums.EnumsInterface;

/**
 * 授权类型
 * 
 * @author July july_sky@foxmail.com
 * @date 2018年3月28日 下午1:36:46
 * @Copyright ©2015-2035 湘豫(北京)科技有限公司. All Rights Reserved.
 * @version 1.0
 */
public enum GrantTypeEnum implements EnumsInterface{

    PASSWORD("password","密码模式"),
    REFRESH_TOKEN("refresh_token","刷新TOKEN");
    
    private String code;
    private String value;
    private GrantTypeEnum(String code,String value) {
        this.code = code;
        this.value = value;
    }
    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getValue() {
        return this.value;
    }
    
    @Override
    public String toString() {
        return this.code;
    }
}
